// @import "~antd/dist/antd.css";

@color-listItem: #7a7a7a;
@color-image: #f9c00c;
@color-video: #cfda00;
@color-action: #0cf9e5;
@color-svgAnim: #10e8a7;
@color-speech: #00b9f1;
@color-audio: #6860c5;
@color-lottie: #7846a7;
@color-text-basic: #fff;
@fontsize-small: 10px;
@border-radius: 4px;

.timeline-editor-engine {
      height: 30vh;
      width: 100%;
      z-index: 999;
      position: absolute;
      .player-panel {
        width: 100%;
        // max-width: 800px;
        height: 300px;
        position: relative;
    
        .lottie-ani {
          position: absolute;
          width: 100%;
          height: 100%;
          left: 0;
          top: 0;
        }
      }
      
      .timeline-itemControlList{
        width: 230px;
        height: 100%;
        padding-top: 40px;
        overflow: overlay;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: #1e1e1e;
        &-item{
          border-radius: @border-radius;
          // background-color: @color-listItem;
          display: flex;
          align-items: center;
          height: 25px;
          margin-top: 5px;
          margin-bottom: 5px;
          justify-content: center;
          &:hover {
            background-color: #5d5d5d;
          }
        }
        
      }
      .timeline-editor {
        width: 100%;
        // flex: 1 1 auto;
        
        // max-width: 800px;
        height: 100%;
      
        &-action {
          height: 25px !important;
          top: 50%;
          transform: translateY(-50%);
        }
        &-action {
            border-radius: @border-radius;
            &-effect-effectAudio {
              background-color: @color-audio;
            //   background-image: url("/assets/soundWave.png");
            }    
            
            &-effect-effectLottie {
              background-color: @color-lottie;
            }    
            &-effect-flow_edit_image {
              background-color: @color-image;
            }    
            &-effect-flow_edit_video {
              background-color: @color-video;
            }    
            &-effect-flow_edit_action {
              background-color: @color-action;
            }    
            &-effect-flow_edit_svgAnim {
              background-color: @color-svgAnim;
            }    
            &-effect-flow_edit_speech {
              background-color: @color-speech;
            }    
            &-effect-flow_edit_audio {
              background-color: @color-audio;
            }    
      
            &-effect-effectAudio,
            &-effect-flow_edit_image,
            &-effect-flow_edit_video,
            &-effect-flow_edit_action,
            &-effect-flow_edit_svgAnim,
            &-effect-flow_edit_speech,
            &-effect-flow_edit_audio,
            &-effect-effectLottie {
                cursor: pointer;
       
                background-position: bottom;
                background-repeat: repeat-x;

                &-effect-effectAudio,
                &-effect-flow_edit_image,
                &-effect-flow_edit_video,
                &-effect-flow_edit_action,
                &-effect-flow_edit_svgAnim,
                &-effect-flow_edit_speech,
                &-effect-flow_edit_audio,
                &-effect-effectLottie {
                    width: 100%;
                    height: 100%;
                    font-size: @fontsize-small;
                    color: @color-text-basic;
                    border-radius: @border-radius;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                      &-text {
                        margin-left: 4px;
                        flex: 1 1 auto;
                        text-align: center;
                        display: flex;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        flex-direction: column;
                        justify-content: center;
                        overflow: hidden;
                      }
                      
                    }

                    .timeline-editor-action-left-stretch,
                    .timeline-editor-action-right-stretch {
                      overflow: inherit;
                    
                      &::after {
                        width: 18px;
                        height: 18px;
                        transform: rotate(
                          45deg
                        ) scale(.8);
                        background: #aabbcc;
                        border: none;
                      }
                    }
                    .timeline-editor-action-left-stretch::after {
                      left: -9px;
                    }
                
                    .timeline-editor-action-right-stretch::after {
                      right: -9px;
                    }
                    // .timeline-editor-action-left-stretch{
                    //   &::after {  
                    //     border-left: 7px solid fade(#fff, 40);
                    //   }
                    // }

                    // .timeline-editor-action-right-stretch {
                    //     &::after {  
                    //       border-right: 7px solid fade(#fff, 40);
                    //     }
                    // }
                }
            }
      }
      
      .timeline-player {
          height: 32px;
          width: 100%;
          // max-width: 800px;
          padding: 0 10px;
          display: flex;
          flex-direction: row;
          align-items: center;
          background-color: #3a3a3a;
          color: #ddd;
          .play-control {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            display: flex;
            background-color: #666;
            justify-content: center;
            align-items: center;
          }
          .time {
            font-size: 12px;
            margin: 0 20px;
            width: 70px;
          }
          .rate-control {
            width: 160px;
            display: flex;
          }
      }
}